package Model;

import java.util.TimerTask;

import View.PlayerView;

public class Timeline extends TimerTask {
	
	private double time;
	int i = 0;

	public void run() {
		if(!PlayerModel.getInstance().isPause()){
			PlayerView.sldTimeLine.setValue(i++);
		}
		PlayerModel.getInstance().songEnded();
	}
	
	public Timeline(double time) {
		this.time = time;
	}
	
	public void continuePlaying(){
		//TODO: Continue playing the song in timeline
	}
	
	public void pause(){
		//TODO: Pause song in timeline
	}
	
	public void stop(){
		//TODO: Stop song in timeline
	}
	
	public void edit(int time){
		//TODO: Edit Time line
	}

	public double getTime() {
		return time;
	}

	public void setTime(double time) {
		this.time = time;
	}

}
